/** @format */
import request from '@/utils/request';

// 创建用户搜索记录
export const getMenu = (data: any) => {
  return [
    {
      id: 1,
      name: '报表中心',
      type: 0,
      parentId: 0,
      sort: 1,
      children: [
        {
          id: 11,
          name: '每日成交日报',
          type: 1,
          parentId: 1,
          sort: 1,
          children: [],
        },
        {
          id: 12,
          name: '市场价格看板',
          type: 1,
          parentId: 1,
          sort: 2,
          children: [],
        },
        {
          id: 13,
          name: '内部成交价格看板',
          type: 1,
          parentId: 1,
          sort: 3,
          children: [],
        },
      ],
    },
    {
      id: 2,
      name: '我的收藏',
      type: 0,
      parentId: 0,
      sort: 2,
      children: [
        {
          id: 21,
          name: '口径数据',
          type: 1,
          parentId: 2,
          sort: 1,
          children: [],
        },
        {
          id: 22,
          name: '备案数据',
          type: 1,
          parentId: 2,
          sort: 2,
          children: [],
        },
      ],
    },
    {
      id: 3,
      name: '交易数据',
      type: 0,
      parentId: 0,
      sort: 3,
      children: [
        {
          id: 31,
          name: '供应数据',
          type: 1,
          parentId: 3,
          sort: 1,
          children: [],
        },
        {
          id: 32,
          name: '洗选工厂',
          type: 1,
          parentId: 3,
          sort: 2,
          children: [],
        },
      ],
    },
  ];

  // request({
  //   url: '/product/search-record/create',
  //   method: 'GET',
  //   data,
  //   // isQueryString: true,
  // });
};
